package com.yufuchang;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yufuchang on 2020/9/4.
 */
@RestController
public class MyConfigrationController {

    @Autowired
    String config;

    @Autowired
    MyTestBean myTestBean;

    @GetMapping("/get_myconfig")
    public String getMyconfig(){
        return config;
    }

    public String getMyTestBean(){
        return myTestBean.get();
    }
}
